//
//  BCHeadLetterTableViewCell.m
//  aiteshangcheng
//
//  Created by mac on 2017/6/8.
//  Copyright © 2017年 aite. All rights reserved.
//

#import "BCHeadLetterTableViewCell.h"
#import "Utility.h"

@implementation BCHeadLetterTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
   
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, kScreanWidth - 50, 20)];
        self.titleLabel.font = FONT(15);
        [self addSubview:self.titleLabel];
        
        self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, self.titleLabel.frame.origin.y + self.titleLabel.frame.size.height, kScreanWidth - 50, 20)];
        self.timeLabel.font = FONT(13);
        [self addSubview:self.timeLabel];
        
        self.showContentButton = [[UIButton alloc]initWithFrame:CGRectMake(kScreanWidth - 30, 10, 20, 20)];
        [self.showContentButton setImage:[UIImage imageNamed:@"02_2"] forState:UIControlStateNormal];
        [self.showContentButton setImage:[UIImage imageNamed:@"1_07_2"] forState:UIControlStateSelected];
//        self.showContentButton.backgroundColor = [UIColor redColor];
        [self addSubview:self.showContentButton];
        
        self.otherView = [[UIView alloc]initWithFrame:CGRectMake(0, self.timeLabel.frame.origin.y + self.timeLabel.frame.size.height + 5, kScreanWidth, 70)];
        self.otherView.hidden = YES;
        [self addSubview:self.otherView];
        
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(10, 0, kScreanWidth - 20, 1)];
        lineView.backgroundColor = [UIColor lightGrayColor];
//        [self.otherView addSubview:lineView];
        
        self.contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, lineView.frame.size.width, 50)];
        self.contentLabel.font = self.titleLabel.font;
        [self.otherView addSubview:self.contentLabel];
    }
    return self;
}

@end
